mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-27 22:48:23 +08:00
merge
This commit is contained in:
@@ -27,6 +27,7 @@ var consoleNode, msie,
|
||||
angular = window['angular'] || (window['angular'] = {}),
|
||||
angularValidator = angular['validator'] || (angular['validator'] = {}),
|
||||
angularFilter = angular['filter'] || (angular['filter'] = {}),
|
||||
angularFormater = angular['formater'] || (angular['formater'] = {}),
|
||||
angularCallbacks = angular['callbacks'] || (angular['callbacks'] = {}),
|
||||
angularAlert = angular['alert'] || (angular['alert'] = function(){
|
||||
log(arguments); window.alert.apply(window, arguments);
|
||||
|
||||
6
src/Formaters.js
Normal file
6
src/Formaters.js
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
extend(angularFormater, {
|
||||
'noop':function(){
|
||||
|
||||
}
|
||||
});
|
||||
6
test/FormatersTest.js
Normal file
6
test/FormatersTest.js
Normal file
@@ -0,0 +1,6 @@
|
||||
TestCase("formaterTest", {
|
||||
testNoop: function(){
|
||||
assertEquals("abc", angular.formater.noop("abc"));
|
||||
assertEquals("xyz", angular.formater.noop("abc", "xyz"));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user