petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
764 stars 51 forks source link

Update borrowEvento.js #34

Closed WebReflection closed 11 years ago

WebReflection commented 11 years ago

no .. really, whatever evento is, you want to borrow it? just do it then :D

petermichaux commented 11 years ago

The way Maria does the borrowing now allows developers to write plugins for Evento that replaces the Evento methods and these changes are then also used in Maria. This is late binding and a good thing.

WebReflection commented 11 years ago

looks just dumb code to me, sorry

petermichaux commented 11 years ago

It allows a lot of important flexibility. There are many parts of Maria that implement late binding so that plugins can modify more functionality.

petermichaux commented 11 years ago

Now that evento is hidden inside an IIFE that wraps the whole maria.js, this change makes sense and is committed.