Skip to content

Commit

Permalink
Made ko ninja work without amd
Browse files Browse the repository at this point in the history
  • Loading branch information
tysoncadenhead committed Jan 10, 2014
1 parent 07c4621 commit 8fa854d
Show file tree
Hide file tree
Showing 17 changed files with 772 additions and 185 deletions.
12 changes: 10 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/*global module:false*/
/*jslint module: false, node: true */
/*global require */

'use strict';

var path = require('path');

Expand All @@ -23,7 +26,12 @@ module.exports = function(grunt) {
exclude: [
'underscore',
'knockout'
]
],
done: function(done, output) {
console.log('TEST');
console.log(typeof output);
done();
}
}
},
pretty: {
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ define(['ko.ninja'], function (ko) {
});
```

If your project isn't using AMD, ko.ninja will also work as a non-AMD script like this:

```html
<script src="bower_components/dist/ko.ninja.min.js"></script>
<script>
ko.ViewModel.extend({
...
});
</script>
```

### ko.ViewModel
The `ko.ViewModel` is a constructor to define ViewModels.

Expand Down
Loading

0 comments on commit 8fa854d

Please sign in to comment.