Skip to content

Instantly share code, notes, and snippets.

@lega911
Last active August 29, 2015 13:57
Show Gist options
  • Save lega911/9646274 to your computer and use it in GitHub Desktop.
Save lega911/9646274 to your computer and use it in GitHub Desktop.
alight.directives.al.submit2 = function() {
var dir = alight.directives.al.submit.apply(null, arguments); // Создаем родительскую директиву
dir.doCallback = function(e) { // Подменяем метод обновления модели
self.callback();
scope.$scan();
return true;
};
return dir;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment