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

Commit

Permalink
Update ignore and clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Ludlow committed Apr 4, 2016
1 parent c8ff8c0 commit 1de53be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ _Pvt_Extensions
# Generated output
/bundles/
/components/
/directives/
/ng2-bs3-modal.*
src/**.*.js
src/**.*.d.ts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"peer": "npm install es6-promise@^3.0.2 es6-shim@^0.33.3 [email protected] [email protected] [email protected]",
"lint": "node ./node_modules/.bin/tslint ./src/**/*.ts",
"clean": "node ./node_modules/.bin/rimraf ./bundles/ ./components/ ./ng2-bs3-modal.js ./ng2-bs3-modal.d.ts",
"clean": "node ./node_modules/.bin/rimraf ./bundles/ ./components/ ./directives/ ./ng2-bs3-modal.js ./ng2-bs3-modal.d.ts",
"tsc": "node ./node_modules/.bin/tsc --project . --declaration",
"tsc-test": "node ./node_modules/.bin/tsc --project ./test",
"tsc-single": "node ./node_modules/.bin/tsc --project . --rootDir ./src --module system --outFile ./bundles/ng2-bs3-modal.js",
Expand Down
4 changes: 2 additions & 2 deletions src/ng2-bs3-modal/directives/autofocus.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Directive, ElementRef, OnInit } from 'angular2/core';
import { Directive, ElementRef } from 'angular2/core';
import { ModalComponent } from '../components/modal';

@Directive({
selector: '[autofocus]'
})
export class AutofocusDirective implements OnInit {
export class AutofocusDirective {
constructor(private el: ElementRef, private modal: ModalComponent) {
this.modal.onOpen.subscribe(() => {
this.el.nativeElement.focus();
Expand Down

0 comments on commit 1de53be

Please sign in to comment.