Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

Added support of CommonJS #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.*
README.md
Gruntfile.coffee
components
node_modules
src
test
3 changes: 3 additions & 0 deletions angular-contenteditable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* @see http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController
* @see https://github.com/angular/angular.js/issues/528#issuecomment-7573166
*/
(function(window, angular, undefined) {'use strict';

angular.module('contenteditable', [])
.directive('contenteditable', ['$timeout', function($timeout) { return {
Expand Down Expand Up @@ -106,3 +107,5 @@ angular.module('contenteditable', [])
}
}
}}]);

}(window, window.angular));
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require('./angular-contenteditable');
module.exports = 'contenteditable';

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "angular-contenteditable",
"version": "0.3.8",
"version": "0.3.9",
"description": "angular model for the 'contenteditable' html attribute",
"repository": {
"type": "git",
"url": "https://github.com/akatov/angular-contenteditable.git"
},
"main": "angular-contenteditable.js",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"install": "bower install",
"install-bower": "bower install",
"test": "grunt test"
},
"repository": "",
Expand Down